import { createStore } from 'redux'


import rootReducer from './reducers'
// 需要你传入一个 reducer（纯函数，用于计算最新的状态）
export const store = createStore(
    rootReducer,
    window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__()
);
